﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FontExport
{
    public static  class TransFontInfo
    {
        public static int GetFontWidth(int fontHeight)
        {

            if (fontHeight >= 10 && fontHeight <= 16)
            {
                return 16;
            }
            else if (fontHeight > 16 && fontHeight <= 24)
            {
                return 24;
            }
            else if (fontHeight > 24 && fontHeight <= 32)
            {
                return 32;
            }
            else if (fontHeight > 32 && fontHeight <= 40)
            {
                return 40;
            }

            return 16;
        }

        public static int GetFontSize(int fontHeight)
        {
            if (fontHeight > 8 && fontHeight <= 16)
            {
                return 12;
            }
            else if (fontHeight > 16 && fontHeight <= 24)
            {
                return 16;
            }
            else if (fontHeight > 24 && fontHeight <= 32)
            {
                return 24;
            }
            else if (fontHeight > 32 && fontHeight <= 40)
            {
                return 32;
            }

            return 12;
        }
    }
}
